<!--<?php
if (!defined('AJAX')){include_once PrintEot('left');}
print <<<EOT
-->
<script language="JavaScript" src="js/global.js"></script>
<script language="JavaScript" src="js/pw_ajax.js"></script>
<div class="nav3 mb10">
    <ul id="basictype" class="cc">
		<li class="current"><a href="$basename&action=developer" hidefocus="true">开发商管理</a></li>
    </ul>
</div>

<form action="$basename&action=$action" method="post">
<h2 class="h1"><span class="fl mr10">搜索条件</span></h2>
<div class="admin_table mb10">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr1 vt">
		<td class="td2" width="280">开发商名称 <input type="text" name="name" class="input input_wa" value="$name" /></td>
		<td class="td2" colspan="2"><span class="bt2"><span><button type="submit" onfocus="blur();">查找</button></span></span></td>
	</tr>
</table>
</div>
</form>

<form action="$basename&action=$action" method="post" name="FORM">
<input type="hidden" name="step" value="2">
<h2 class="h1"><span class="fl mr10">开发商信息管理</span><span class="linka"><a class="btn_add" id="td_developer" onclick="read.open('menu_developer', this.id, 2)"><i>添加</i></a></span>
<span class="fr">[共{$total}条结果]</span>
</h2>
<div class="admin_table mb10 cc">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr2 vt">
		<td width="40"><span onclick="CheckAll(document.FORM);" class="cp">全选</span></td>
		<td>开发商名称</td>
		<td>公司地址</td>
		<td>联系电话</td>
		<td>操作</td>
	</tr>
<!--
EOT;
if($total){
foreach ($devdb as $key => $value) {print <<<EOT
-->
	<tr class="tr1 vt">
		<td class="td2"><input type="checkbox" name="selid[]" value="$value[id]" /></td>
		<td class="td2">$value[name]</td>
		<td class="td2">$value[address]</td>
		<td class="td2">$value[tel]</td>
		<td class="td2"><a href="$basename&action=editdeveloper&id=$value[id]" id="developer_$value[id]" onclick="sendmsg(this.href,'',this.id);return false;">编辑</a> <a href="$basename&action=deldeveloper&id=$value[id]" id="deldeveloper_$value[id]" onclick="sendmsg(this.href,'',this.id);return false;">删除</a></td>
	</tr>
<!--
EOT;
}
}else{
print <<<EOT
-->
<tr><td class="p10" colspan="9"><div class="admin_tips">啊哦，没有你要的信息！</div></td></tr>
<!--
EOT;
}
print <<<EOT
-->
</table>
</div>
<div class="mb10 cc">
$pages
</div>
<div class="mb10 tac">
    <span class="bt"><span><button type="button" onclick="CheckAll(document.FORM);" onfocus="blur();">全选</button></span></span>
	<span class="btn"><span><button type="submit" onfocus="blur();">删 除</button></span></span>
</div>
</form>

<div id="menu_developer" class="menu" style="display:none">
<form action="$basename&action=adddeveloper" method="post">
	<div class="admin_table mb10" style="width:500px">
	<h2 class="h1" onmousedown="read.move(event);" style="cursor:move"><a class="del_img fr" href="javascript:;" onclick="closep();">关闭</a>添加开发商信息</h2>
	<table width="100%" cellspacing="0" cellpadding="0">
		<tr class="tr1 vt">
			<td class="td2">开发商名称</td>
			<td class="td2" colspan="3"><input type="text" name="name" class="input input_wb" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">资质等级</td>
			<td class="td2" colspan="3"><input type="text" name="level" value="" class="input input_wb" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">公司地址</td>
			<td class="td2" colspan="3"><input type="text" name="address" value="" class="input input_wb" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">邮政编码</td>
			<td class="td2"><input type="text" name="zipcode" value="" class="input" size="14" /></td>
			<td class="td2">Email</td>
			<td class="td2"><input type="text" name="email" value="" class="input" size="13" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">网址</td>
			<td class="td2" colspan="3"><input type="text" name="url" value="" class="input input_wb" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">负责人</td>
			<td class="td2"><input type="text" name="principal" value="" class="input" size="14" /></td>
			<td class="td2">联系人</td>
			<td class="td2"><input type="text" name="linkman" value="" class="input" size="13" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">联系电话</td>
			<td class="td2"><input type="text" name="tel" value="" class="input" size="14" /></td>
			<td class="td2">传真</td>
			<td class="td2"><input type="text" name="fax" value="" class="input" size="13" /></td>
		</tr>
		<tr class="tr1 vt">
			<td class="td2">公司简介</td>
			<td class="td2" colspan="3"><textarea name="introduction" class="textarea"></textarea></td>
		</tr>
	</table>
	</div>
	<div class="mb10 tac"><span class="btn2"><span><button type="submit" onfocus="blur();">提 交</button></span></span></div>
</form>
</div>
<!--
EOT;
if (!defined('AJAX')){include_once PrintEot('adminbottom');}
?>-->